import { http } from "@/utils/http";
import { baseUrlApi, filerEmptyVal } from "../utils";

/** 门店入库表列表 */
export const getPutStockList = (params?: object) => {
  return http.request<any>("get", baseUrlApi("/StoreStockPutIn/page"), {
    params: filerEmptyVal(params)
  });
};

/** 新增入库 */
export const addPutStock = (data?: object) => {
  return http.request<any>("post", baseUrlApi("/StoreStockPutIn/add"), {
    data: filerEmptyVal(data)
  });
};

/** 根据门店id获取订单编码(发货中/部分发货/已发货) */
export const getOrderCodeList = (params?: object) => {
  return http.request<any>("get", baseUrlApi("/StoreStockPutIn/getOrderCode"), {
    params: filerEmptyVal(params)
  });
};

/** 订单详情 */
export const getOrderCodeDetail = (params?: object) => {
  return http.request<any>("get", baseUrlApi("/StoreStockPutIn/detail"), {
    params
  });
};
